<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <link rel="stylesheet" href="index.css">
    </head>
    <body>
        <div id="container">
            <!-- 广告和导航条 -->
            <div id="nav-ad">
                <div id="ad">
                    <img src="./imgs/f7bd6e2151ddfe2562cb5a9ffff56cb6.png" alt="">
                </div>
                <div id="nav">
                    <div class="search-box">
                        <div class="mi"><img src="./imgs/mi.png" alt=""></div>
                        <div class="search">搜索商品名称</div>
                        <div class="user"><img src="./imgs/icon-user.23496a0116.png" alt="" ></div>
                    </div>
                    <div class="list-box">
                        <ul>
                            <li>推荐</li>
                            <li>手机</li>
                            <li>智能</li>
                            <li>电视</li>
                            <li>笔记本</li>
                            <li>家电</li>
                            <li>生活周边</li>
                        </ul>
                        <div class="arrow"><img src="./imgs/arrow.png" alt=""></div>
                    </div>
                </div>
            </div>
            <!-- 正式内容 -->
            <div id="content">
                <div id="carousel">
                    <img src="./imgs/7876ccf3062179fa22d9707d0bf16d44.jpg" alt="">
                </div>
                <div id="cell-box">
                    <ul>
                        <li><img src="./imgs/9ea68dee2bfa0e55a82236b0d968e975.png" alt=""></li>
                        <li><img src="./imgs/96c780016ea196743905dc93f9249c39.png" alt=""></li>
                        <li><img src="./imgs/64f3988b6216e4c1ab62a7f50df3e816.webp" alt=""></li>
                        <li><img src="./imgs/7dbcbf87-6a58-adb6-2f3f-bb3dae3e9c80.webp" alt=""></li>
                        <li><img src="./imgs/9425031cdd7af22d9a23a5ae16d1f57c.webp" alt=""></li>
                        <li><img src="./imgs/cb65daec7ef7b52cc785f88f78efba37.png" alt=""></li>
                        <li><img src="./imgs/eb5024fe-dfe3-6e53-3e18-675bef5fa06e.webp" alt=""></li>
                        <li><img src="./imgs/f11f9df6b0b0b428f8c8fc3267131830.png" alt=""></li>
                        <li><img src="./imgs/e8bc849a-0a3b-21a0-6810-7da3a3903dee.webp" alt=""></li>
                        <li><img src="./imgs/d436f30612651fffe1d6c5aaa3fdb816.webp" alt=""></li>
                    </ul>
                </div>
                <div id="redmi30">
                    <img src="./imgs/d692a30ee3d586c4274575eec255d3c5.webp" alt="">
                    <img src="./imgs/827a686678f39b1bbdc99c6e6b6a13c8.webp" alt="">
                    <img src="./imgs/267e988a99b5cf4e960747e8aa5fa831.webp" alt="">
                </div>
                <div class="xiaomi10">
                    <img src="./imgs/189acdf7e9b807cfc22d394df87c1958.webp" alt="">
                </div>
                <div class="xiaomi10">
                    <img src="./imgs/e32eea5c3c27062019f9ac6434b351df.webp" alt="">
                </div>
                <div id="pro-list">
                    <ul>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img" src="./imgs/7ed6090953a4edca0ee6bc4b36cb4a9e.jpg" alt="">
                            <div class="pro-name">小米10 Pro</div>
                            <div class="pro-desc">骁龙865 / 50倍变焦</div>
                            <div class="pro-price"><span class="new">4999</span></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                        <li>
                            <img class="pro-img"  src="./imgs/9b3b7c52bffab0806c54652ee0872a64.jpg" alt="">
                            <div class="pro-name">小米10</div>
                            <div class="pro-desc">骁龙865/1亿像素相机</div>
                            <div class="pro-price"><span class="new">3799</span><del class="old">3999</del></div>
                            <div class="pro-buy">立即购买</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
<script>
    function calcHTMLFontSize(){
        var cH = document.documentElement.clientWidth;
        document.documentElement.style.fontSize = cH / 5 + "px";
    }
    calcHTMLFontSize();
    window.onresize = calcHTMLFontSize;
</script>